FROM alpine

MAINTAINER kinwyb kinwyb@aliyun.com

RUN apk add --no-cache ca-certificates && update-ca-certificates && apk add openssl

#upx压缩
COPY ./upx /bin
# 解决时区问题
COPY ./Shanghai /etc/localtime

RUN mkdir -p /agent/logs
COPY ./client /agent/client
WORKDIR /agent

# 服务端地址
ENV CAGENT_SERVER_ADDRESS "127.0.0.1:9999"
# 运行端标记
ENV CAGENT_CLIENT_ID ""
# 运行端分组
ENV CAGENT_TAG "DEV"

ENV LOG_TO_CONSOLE false

ENTRYPOINT /agent/client
